package com.nuc.zyt.day04.demo.cookfoodie;

import java.util.concurrent.ArrayBlockingQueue;

/**
 * @ClassName App
 * @Description TODO
 * @Author 耀酱
 * @Date 2023/5/30 7:55
 * @Version 1.0
 */

public class App {
    public static void main(String[] args) {
//        Cook cook = new Cook();
//        Foodie foodie = new Foodie();
//        foodie.start();
//        cook.start();

        ArrayBlockingQueue<String> strings = new ArrayBlockingQueue<String>(1);

        CookPlus cookPlus = new CookPlus(strings);
        FoodiePlus foodiePlus = new FoodiePlus(strings);

        cookPlus.start();
        foodiePlus.start();
    }
}
